<?php
// Main configuration file for the Language Archive software.
//
// larch /laɹtʃ/ n.: Any tree in the genus Larix, esp. the European larch L.
//   decidua (Mill.) or the American larch L. laricina ((Du Roi) K. Koch).
//   Unlike most conifers, larches are deciduous, with needles turning yellow
//   in autumn and leaving the trees leafless in the winter. Larches are valued
//   for their tough, waterproof wood which is resistant to rot even when in
//   ground contact. Noted as a running gag in certain Monty Python sketches.

// The base path of all files in this program on the webserver. Must include
// at least protocol & hostname, e.g. 'http://example.com/'.
if (! defined('BASE_PATH'))
	define('BASE_PATH', 'http://localhost/larch');

//
// Smarty.
//

// Where to find the Smarty class file.
$smarty_source = '/opt/local/lib/php/Smarty/Smarty.class.php';
// Where the smarty templates are found.
$smarty_tpl = '/Users/james/Projects/Larch/larch';
// Where the smarty cache, configs, and compiled templates live.
$smarty_dir = $smarty_tpl . '/smarty';
$smarty_compile_dir = $smarty_dir . '/templates_c';
$smarty_config_dir = $smarty_dir . '/configs';
$smarty_cache_dir = $smarty_dir . '/cache';
// Debugging. Should be false in production environments.
$smarty_dbg = true;

//
// Larch.
//

// A prefix for cookies & session variables. Includes following underscore.
// This should allow for multiple installations on the same web server, but
// this is entirely untested.
$larch_pfx = 'larch_';

// Official name and subtitle of the archive.
$larch_name = 'Kaipuleohone';
$larch_name_subtitle = 'The University of Hawai‘i at Mānoa Language Archive';

// Session timeout length.
$larch_sess_timeout = time()+14*24*60*60;

//
// Database.
//

// The host of the database. Should be IP address or FQDN.
$larch_db_host = 'localhost';

// The name of the database schema.
$larch_db_name = 'language_archive';

// The following username & password pairs are also defined in schema.sql.
// Make sure that they match with those used here.

// The database username and password for read-only access (i.e. SELECT only).
$larch_db_readonly_user = 'larch_readonly';
$larch_db_readonly_pass = 'Rd0n|y_U$r';

// The database username and password for read-write access (i.e. INSERT).
$larch_db_readwrite_user = 'larch_readwrite';
$larch_db_readwrite_pass = 'RdWr1t3_U$r';

// The database username and password for read-write access involving deletion
// (i.e. UPDATE, REPLACE, DELETE).
$larch_db_overwrite_user = 'larch_delete';
$larch_db_overwrite_pass = 'd3|373_U$r';

// THe database username and password for searching (search_set table).
$larch_db_searchset_user = 'larch_search';
$larch_db_searchset_pass = '53@rCh_U$r';

//
// Various form defaults.
//

// Default values for the quick search form (qsearch.{php,tpl}).
$qsearch_pid_dflt = "Persistent ID";
$qsearch_item_dflt = "Item name";
$qsearch_lang_dftl = "Language name/code";
$qsearch_cty_dflt = "Country name/code";
